package cn.ibdsr.human.transfer;

import cn.ibdsr.human.core.check.Verfication;
import cn.ibdsr.human.db.model.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @description:
 * @author: cdl
 * @email: iamcimon@qq.com
 * @date: 2021/6/24 16:08
 */
@ApiModel("修改密码DTO")
@Data
public class PasswordDTO extends BaseDTO {
    private static final long serialVersionUID=2L;
    /**
     * 原密码
     */
    @ApiModelProperty(value = "原密码",required = true)
    @NotEmpty(message = "用户账号不能为空" )
    private String oldPwd;
    /**
     * 新密码
     */
    @ApiModelProperty(value = "新密码",required = true)
    @NotEmpty(message = "新密码不能为空" )
    private String newPwd;
    /**
     * 重复密码
     */
    @Verfication(name = "确认密码", notNull = true)
    @NotEmpty(message = "确认密码不能为空" )
    private String rePwd;


    /**
     * 系统类型：1求职者 2企业
     */
    @ApiModelProperty(value = "系统类型：1求职者 2企业",required = true)
    @NotNull(message = "系统类型不能为空" )
    private Integer sysType;
}
